package com.neusoft.nepg.service;

import com.neusoft.common.domain.Supervisor;
import com.neusoft.common.domain.SupervisorMesg;
import com.neusoft.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

@FeignClient(name = "service-neps",url = "http://localhost:7000", configuration = FeignConfig.class)
public interface NepsServiceClient {
    @GetMapping("/service-neps/supervisor/find-belong")
    List<SupervisorMesg> findBelong(@RequestParam("code") String code);
    @GetMapping("/service-neps/supervisor/find-one")
    List<SupervisorMesg> findOne(@RequestParam("id") int id);
    @GetMapping("/service-neps/supervisor/getBy-id")
    Supervisor getById(@RequestParam("id") String id);
    @GetMapping("/service-neps/supervisor/update-status")
    Boolean updateStatus(@RequestParam("id") int id);
}
